﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 剧情设计器2._0
{
    public class Character
    {
        //角色的姓名
        public string name = "";
        //角色的设定集
        public List<Setting> settings = new List<Setting>();

        public override int GetHashCode()
        {
            int code = name.GetHashCode();
            foreach (Setting setting in settings)
                code += setting.GetHashCode();
            return code;
        }
    }
}
